//more.js
const utils = require("../../utils/util.js");

Page({
  data: {
    logs: []
  },
  onLoad: function() {
    this.setData({
      logs: (wx.getStorageSync("logs") || []).map(log => {
        return util.formatTime(new Date(log));
      })
    });
  },
  ...utils.defaultShare,
  contactEvent(event) {
    console.log(event);
  },
  begin(){
    wx.switchTab({
      url: '/pages/index/index',
    })
  },
});
